package com.dony.shop.service;

public interface ShopeeAuthService {

    /**
     * 获取accessToken
     *
     * @return
     */
    String createAccessTokenUrl();

    /**
     * 保存 AccessToken
     *
     * @param code
     * @param mainAccountId
     * @param shopId
     * @return
     */
    void saveAccessToken(String code, Long mainAccountId, Long shopId, Long userId);

    /**
     * 获取缓存token
     *
     * @param shopId
     * @return
     */
    String getShopAccessToken(Long shopId);

    /**
     * 获取缓存token
     *
     * @param shopId
     * @return
     */
    String getMerchantAccessToken(Long shopId);

}
